//公共js
//popupDiv弹窗div;hideDiv隐藏div，关闭按键
function popupDiv(div_id) {
    var div_obj = $("#" + div_id);
    //窗口宽度,高度
    var winWidth = $(window).width();
    var winHeight = $(window).height();
    //弹出的div的宽度,高度
    var popHeight = div_obj.height();
    var popWidth = div_obj.width();
    div_obj.animate({ opacity: "show", left: (winWidth-popWidth) / 2, top: (winHeight-popHeight)/2,width:popWidth,height:popHeight}, 300);          
}
function hideDiv(div_id) {
    $("#" + div_id).animate({opacity: "hide" }, 300);
    $(".inputtishi").css("display", "none");
}
function isnull(div_id){
	var div_obj = $("#" + div_id);
	var value = div_obj.attr("value");
	value = value.replace(/(^\s*)|(\s*$)/g,"");
	//alert(value);
	var display = $("#" + div_id+"_0")
	if(value==""){
		display.css("display","block");
	}else{
		display.css("display","none");
	}
}
